<h2><?=tr('Proxys')?></h2>
<?
	$proxys = fgsProxys::getAll();

	$table = new htmlTable();
	$table->setHeader('id', array(
		'title' => '#',
		'width' => '5ex',
	));
	$table->setHeader('name', array(
		'title' => tr('Name'),
	));
	$table->setHeader('ip', array(
		'title' => tr('Ip'),
		'width' => '24ex',
	));
	$table->setHeader('dt', array(
		'title' => tr('Last access'),
		'width' => '24ex',
	));
	$table->setHeader('status', array(
		'title' => tr('Status'),
		'width' => '14ex',
	));

	foreach ($proxys as $k => $proxy) {
		$table->set('id', $k);
		$table->set('name', $proxy['fgsd_name']);
		$table->set('ip', $proxy['fgsd_ip']);
		$table->set('dt', fgsUtils::formatDate($proxy['date']));
		$table->set('status', $proxy['fgsd_status'] ? tr('Online') : tr('Offline'));
		$table->push();
	}
	
	echo $table->render();
?>
